﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteAdmin.Master" Inherits="System.Web.Mvc.ViewPage<Beeldbankmvc.ViewModels.PriceinfoViewModel>" %>
<%@ Import Namespace="Beeldbankmvc.Code" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">Nieuwe prijsinformatie</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<% Html.RenderAction("AdminMenu", "Miscellaneous"); %>

	<h2>Nieuwe prijsinformatie</h2>

	<% Html.EnableClientValidation(); %>
	<%: Html.ValidationSummary("Corrigeer de fouten en probeer het opnieuw.") %>

	<% using (Html.BeginForm()) {%>

		<fieldset style="border: 0px;">
			<legend style="Display: none;">Velden</legend>
			
			<%: Html.HiddenFor(m => Model.Priceinfo.Id) %>
			
			<div class="editor-label">
				<%: Html.LabelFor(m => Model.Priceinfo.Type)%>
			</div>
			<div class="editor-field">
				<%: Html.TextBoxFor(m => Model.Priceinfo.Type)%>
				<%: Html.ValidationMessageFor(m => Model.Priceinfo.Type)%>
			</div>
			
			<div class="editor-label">
				<%: Html.LabelFor(m => Model.Priceinfo.Formaat)%>
			</div>
			<div class="editor-field">
				<%: Html.TextBoxFor(m => Model.Priceinfo.Formaat)%>
				<%: Html.ValidationMessageFor(m => Model.Priceinfo.Formaat)%>
			</div>
			
			<div class="editor-label">
				<%: Html.LabelFor(m => Model.Priceinfo.HoofdNummer)%>
			</div>
			<div class="editor-field">
				<%: Html.TextBoxFor(m => Model.Priceinfo.HoofdNummer, new { style = "width:16px;" })%> - 
				<%: Html.TextBoxFor(m => Model.Priceinfo.SubNummer, new { style = "width:16px;" })%>
				<%: Html.ValidationMessageFor(m => Model.Priceinfo.HoofdNummer)%>
				<%: Html.ValidationMessageFor(m => Model.Priceinfo.SubNummer)%>
			</div>
			
			<div class="editor-label">
				<%: Html.LabelFor(m => Model.Priceinfo.Tonen)%>
			</div>
			<div class="editor-field">
				<%: Html.CheckBoxFor(m => Model.Priceinfo.Tonen)%>
			</div>
			
			<div class="editor-label">
				<%: Html.LabelFor(m => Model.Priceinfo.MediaTypeId)%>
			</div>
			<div class="editor-field">
				<%: Html.DropDownList("Types")%>
			</div>
			
			<div class="editor-label">
				<%: Html.LabelFor(m => Model.Priceinfo.Prijs)%>
			</div>
			<div class="editor-field">
				<%: Html.TextBoxFor(m => Model.Priceinfo.Prijs)%>
				<%: Html.ValidationMessageFor(m => Model.Priceinfo.Prijs)%>
			</div>
			
			<p>
				<input type="submit" value="Opslaan" />
			</p>
		</fieldset>

	<% } %>

	<div>
		<a href="<%= Url.Action("Index", "PriceInfo") %>">
			<img src="<%=AppHelper.getContent("~/Content/images/list.jpg") %>" alt="Terug naar het overzicht" />
			Terug naar het overzicht</a>
	</div>

</asp:Content>

